home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 13 / CU Amiga Magazine's Super CD-ROM 13 (1997)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1997-08].iso / CUCD / Graphics / irit70 / readme.1st < prev    next >
Text File  |  1997-04-10  |  11KB  |  236 lines

  1. This file describes the steps need to be taken to compile this package
  2. under the different environments.
  3.  
  4. Join IRIT mailing list:        gershon@cs.technion.ac.il
  5. Mailing list:            irit-mail@cs.technion.ac.il
  6. Bug reports:            irit-bugs@cs.technion.ac.il
  7.  
  8. -----------------------------------------------------------------------------
  9.  
  10. OS2
  11. ---
  12.  
  13.    Edit the file makeflag.os2 in the main directory.
  14. Set all the variables to the correct path you would like the include
  15. files/libraries/binaries to be installed to.
  16.    Type 'make -f makefile.os2'. This should build the libraries
  17. (misc/cagd/prsr/graf) following by all the tools including the solid
  18. modeler itself - IRIT.
  19.  
  20.    Once everything built, change directory to the binaries directory. Edit
  21. all *.cfg configuration files and follow the instructions in them to configure
  22. the programs to your system.
  23.    On line help is saved in irit.hlp and is copied to the binaries
  24. directory. In the docs directories, the 'irit.tex' can be latex'ed and printed
  25. to get a hardcopy manual for IRIT. Alternatively print 'irit.doc' which is
  26. a similar but plain text file.
  27.  
  28.    Each of the subdirectories illustrt/filters/poly3d-r/poly3d-h has a
  29. batch file called test-os2.cmd. Run them to test your new executables.
  30.   Note you will need a gif viewer for poly3d-r images and that test-os2.cmd on
  31. poly3d-h do require ???Drvs display device executable to display the hidden
  32. line removed results.
  33. On the IRIT subdirectory type 'irit demo.irt' to run a demo of IRIT.
  34. There are quite a few other .irt files in that directory you may want to try.
  35. Make sure the IRIT_PATH environment variable is properly set as well as
  36. OS2IRIT and OS2IRIT_POS as described in the manual. You can run all
  37. these tests by executing 'make -f makefile.os2 test' from the main directory.
  38.  
  39.    Things to watch for:
  40.  
  41. * all the makefiles in the subdirectories source makeflag.unx via the line
  42.   'include ../makeflag.os2'. If your make support different include structure
  43.   or does not support it at all, you will have to change it or manually
  44.   substitute makeflag.unx content into the subdirectory makefiles.
  45. * poly3d-r requires gif_lib (see below) to build, a library that is not
  46.   provided with this package. You can ftp it separately (see below).
  47.   The poly3d-r renderer renders into 8 bit GIF images and results are
  48.   medium at best. Using the filter IRIT2RAY, use RAYSHADE which is far
  49.   superior and recommended.
  50.  
  51. -----------------------------------------------------------------------------
  52.  
  53. UNIX
  54. ----
  55.    Edit the file makeflag.unx in the main directory.
  56. Set all the variables to the correct path you would like the include
  57. files/libraries/binaries to be installed to. You will, at least, need to
  58. set SRC_DIR.
  59.   Select the correct compiler flags if your architecture exists there, by
  60. typing 'make -f makefile.unx' to get a list of supported platforms.
  61. Otherwise create a new entry in makeflag.unx flags for your system.
  62.    Type 'make -f makefile.unx xxxx', where xxxx is your platform. This
  63. should build the libraries (misc, cagd, prsr, etc.) following by all the
  64. tools including the solid modeller itself - IRIT.
  65.  
  66.    Once everything built, change directory to the binaries directory. Edit
  67. all *.cfg configuration files and follow the instructions in them to configure
  68. the programs to your system.
  69.    On line help is saved in irit.hlp and is copied to the binaries
  70. directory. In the docs directories, the 'irit.tex' can be latex'ed and printed
  71. to get a hardcopy manual for IRIT. Alternatively print 'irit.doc' which is
  72. a similar but plain text file.
  73.  
  74.    Each of the subdirectories illustrt/filters/poly3d-r/poly3d-h has a batch
  75. file called test-unx. Run them to test your new executables by doing
  76. 'csh test-unx'. Note you will need a gif viewer for poly3d-r images and that
  77. test-unx on poly3d-h do require ???drvs display device executable to display
  78. the hidden line removed results.
  79. On the IRIT subdirectory type 'irit demo.irt' to run a demo of IRIT.
  80. There are quite a few other .irt files in that directory you may want to try.
  81. Make sure the IRIT_PATH and IRIT_DISPLAY environment variables are properly
  82. set as described in the manual. You can run all these tests by executing
  83. 'make -f makefile.unx test' from the main directory. Optionally you might
  84. need to set the environment of IRIT_SERVER_PORT and IRIT_SERVER_HOST.
  85.  
  86.    Things to watch for:
  87.  
  88. * all the makefiles in the subdirectories source makeflag.unx via the line
  89.   'include ../makeflag.unx'. If your make support different include structure
  90.   or does not support it at all, you will have to change it or manually
  91.   substitute makeflag.unx content into the subdirectory makefiles.
  92. * Your system must support either X11 or gl. Without graphics you would not
  93.   be able to build the display devices.
  94. * poly3d-r is NOT building under UNIX by default. This is because you need
  95.   another library called gif_lib to link to, and which is not
  96.   provided with this package. You can ftp it separately (see below).
  97.   The poly3d-r renderer renders into 8 bit GIF images and results are
  98.   medium at best. Using the filter IRIT2RAY, use RAYSHADE which is far
  99.   superior and recommended.
  100.  
  101. -----------------------------------------------------------------------------
  102.  
  103. AmigaOS
  104. -------
  105.  
  106. The Amiga port of IRIT 7.0 was tested using gcc 2.7.2.1. (It can also be
  107. compiled with SAS/C version 6.57, but the resulting IRIT binary has problems.)
  108.  
  109. When running demo.irt, IRIT required about 10M of memory, so you may
  110. need to install VMM before you can use IRIT.
  111.  
  112. Compiling:
  113.  
  114. You will need GNU make, as well as the programs sh, cp, mv, rm, and echo.  If
  115. you want to add Utah RLE support to irender, you will need to install the URT
  116. header files and libraries (source is available from ftp.cs.utah.edu).  If you
  117. want to build the documentation from scratch, you will need to build irender
  118. with Utah RLE support and to install the rletops and crop programs from the
  119. Utah raster toolkit.
  120.  
  121. Compiling with gcc:
  122.  
  123. Edit makeflag.ami, and modify the following assignments:
  124. SRC_DIR  = Put here the name of the top level IRIT directory.
  125. CPUFLAGS = Add the appropriate options for your CPU type and preferred
  126.        math option.
  127.  
  128. Also modify the URT, URT_INC, URT_LIB, and URT_FLAGS definitions to indicate
  129. whether you want Utah raster toolkit support or not, and where the URT
  130. libraries and header files are installed.
  131.  
  132. Type make -f makefile.ami at the top directory, and go for a cup of coffee.
  133. When you return, all the binaries will be in the bin subdirectory.
  134.  
  135. Compiling with SAS/C:
  136. (Currently not recommended--the resulting IRIT binary has problems.)
  137.  
  138. Edit makeflag.sas, and modify the following assignments:
  139. SRC_DIR    = Put the name of the top level IRIT directory.
  140. CFLAGS    = Modify the CPU= and MATH= options according to what CPU you
  141.       have and what kind of floating point math you want to use.
  142. MATHLIB = Put the name of the math library with which you want to link.
  143.  
  144. Also modify the URT, URT_INC, URT_LIB, and URT_FLAGS definitions to indicate
  145. whether you want Utah raster toolkit support or not, and where the URT
  146. libraries and header files are installed.
  147.  
  148. Type make -f makefile.sas at the top directory, and go for a cup of coffee.
  149. When you return, all the binaries will be in the bin subdirectory.
  150.  
  151. Differences between UNIX and Amiga IRIT:
  152.  
  153. None to speak of. There is no IRIT_SERVER_HOST environment variable, and
  154. IRIT_SERVER_PORT points to the name of an Exec port rather than to
  155. whatever it is that it points to in UNIX.  When amidrvs is displaying an
  156. animation, the "Animate" button turns into a "Stop Anim" button; hit it
  157. to stop the animation.  If you run amidrvs by hand, be sure to run it
  158. after IRIT starts looking for it. Yes, I know that the synchronization
  159. code between IRIT and amidrvs is an awful kludge, but since it works,
  160. I'm in no particular hurry to fix it.
  161.  
  162. Bugs:
  163. Quitting from amidrvs while IRIT is running, will cause IRIT to hang.
  164.  
  165. Bug reports:
  166. If you think you've found a bug in the Amiga port (as opposed to a bug
  167. in IRIT itself), send mail to kyrimis@cti.gr.
  168.  
  169. -----------------------------------------------------------------------------
  170.  
  171. WINDOWS NT
  172. ----------
  173.  
  174.    Edit the file makeflag.wnt in the main directory.
  175. Set all the variables to the correct path you would like the include
  176. files/libraries/binaries to be installed to.
  177.    Type 'nmake -f makefile.wnt' (nmake is Microsoft's make provided with
  178. the SDK of Window NT 3.1). This should build the libraries
  179. (misc/cagd/prsr/graf) following by all the tools including the solid
  180. modeler itself - IRIT.
  181.  
  182.    Once everything built, change directory to the binaries directory. Edit
  183. all *.cfg configuration files and follow the instructions in them to configure
  184. the programs to your system.
  185.    On line help is saved in irit.hlp and is copied to the binaries
  186. directory. In the docs directories, the 'irit.tex' can be latex'ed and printed
  187. to get a hardcopy manual for IRIT. Alternatively print 'irit.doc' which is
  188. a similar but plain text file.
  189.  
  190.    Each of the subdirectories illustrt/filters/poly3d-r/poly3d-h has a batch
  191. file called test-os2.cmd. Run them to test your new executables.
  192.    Note you will need a gif viewer for poly3d-r images and that test-os2.cmd on
  193. poly3d-h do require ???drvs display device executable to display the hidden
  194. line removed results.
  195. On the IRIT subdirectory type 'irit demo.irt' to run a demo of IRIT.
  196. There are quite a few other .irt files in that directory you may want to try.
  197. Make sure the IRIT_PATH environment variable is properly set as well as
  198. IRIT_DISPLAY. Optional are IRIT_SERVER_HOST and IRIT_SERVER_PORT as described
  199. in the manual.
  200. You can run all these tests by executing 'make -f makefile.os2 test' from
  201. the main directory.
  202.  
  203.    Things to watch for:
  204.  
  205. * all the makefiles in the subdirectories source makeflag.unx via the line
  206.   'include ../makeflag.os2'. If your make support different include structure
  207.   or does not support it at all, you will have to change it or manually
  208.   substitute makeflag.unx content into the subdirectory makefiles.
  209. * poly3d-r requires gif_lib (see below) to build, a library that is not
  210.   provided with this package. You can ftp it separately (see below).
  211.   The poly3d-r renderer renders into 8 bit GIF images and results are
  212.   medium at best. Using the filter IRIT2RAY, use RAYSHADE which is far
  213.   superior and recommended.
  214.  
  215. -----------------------------------------------------------------------------
  216.  
  217. The intr_lib sources can be ftped from the following two places:
  218.  
  219. 1. wuarchive.wustl.edu. directory mirrors/msdos/irit/intrlib?.zip
  220. 2. simtel20.arpa.mil, directory PD:<MSDOS.IRIT> as intrlib?.zip
  221. where ? is the current version.
  222.  
  223. libintr.a (DJGPP) and intr_lib.lib (MSDOS) are built from this package.
  224.  
  225. -----------------------------------------------------------------------------
  226.  
  227. The gif_lib sources can be ftped from the following two places:
  228.  
  229. 1. wuarchive.wustl.edu. directory mirrors/msdos/gif/giflib??.zip
  230. 2. simtel20.arpa.mil, directory PD:<MSDOS.GIF> as giflib??.zip
  231. where ?? is the current version.
  232.  
  233. libgif.a (UNIX) and gif_libl.lib (MSDOS) are built from the lib subdirectory
  234. of giflib??.zip package.
  235.  
  236.